package com.dianping.cat.consumer.heartbeat.model.entity;

import com.dianping.cat.consumer.heartbeat.model.BaseEntity;
import com.dianping.cat.consumer.heartbeat.model.IVisitor;







public class Disk
  extends BaseEntity<Disk>
{
  private String m_path;
  private long m_total;
  private long m_free;
  private long m_usable;

  public Disk() {}

/* 22 */   public Disk(String path) { this.m_path = path; }




/* 27 */   public void accept(IVisitor visitor) { visitor.visitDisk(this); }



  public boolean equals(Object obj) {
/* 32 */     if (obj instanceof Disk) {
/* 33 */       Disk _o = (Disk)obj;

/* 35 */       if (!equals(getPath(), _o.getPath())) {
/* 36 */         return false;
      }

/* 39 */       return true;
    }

/* 42 */     return false;
  }


/* 46 */   public long getFree() { return this.m_free; }



/* 50 */   public String getPath() { return this.m_path; }



/* 54 */   public long getTotal() { return this.m_total; }



/* 58 */   public long getUsable() { return this.m_usable; }







  public void mergeAttributes(Disk other) {
/* 72 */     assertAttributeEquals(other, "disk", "path", this.m_path, other.getPath());

/* 74 */     this.m_total = other.getTotal();

/* 76 */     this.m_free = other.getFree();

/* 78 */     this.m_usable = other.getUsable();
  }

  public Disk setFree(long free) {
/* 82 */     this.m_free = free;
/* 83 */     return this;
  }

  public Disk setPath(String path) {
/* 87 */     this.m_path = path;
/* 88 */     return this;
  }

  public Disk setTotal(long total) {
/* 92 */     this.m_total = total;
/* 93 */     return this;
  }

  public Disk setUsable(long usable) {
/* 97 */     this.m_usable = usable;
/* 98 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/heartbeat/model/entity/Disk.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */